<gn-buttons>
  <button pButton gnTableButtonNew></button>
  <button pButton gnTableButtonEdit [table]="table" gnDialog [data]="{id: table.selectedKeys}"></button>
  <button pButton gnTableButtonDelete [table]="table"></button>
</gn-buttons>
<p-table gnTable dataKey="id" url="/assets/data.table.json" method="get" sortField="time" sortOrder="desc">
  <ng-template pTemplate="header">
    <tr>
      <th class="table-width-8">ID</th>
      <th>name</th>
      <th class="table-width-5">age</th>
      <th class="table-width-datetime">birthday</th>
      <th class="table-width-datetime">birthday</th>
      <th class="table-width-datetime">enable</th>
      <th class="table-width-3">结果</th>
      <th>超长</th>
    </tr>
  </ng-template>
  <ng-template pTemplate="body" let-rowData>
    <tr [pSelectableRow]="rowData">
      <td>{{rowData.id}}</td>
      <td>{{rowData.name}}</td>
      <td>{{rowData.age}}</td>
      <td class="table-content-center">{{rowData.birthday | datetime}}</td>
      <td class="table-content-center">{{rowData.enable}}</td>
      <td class="table-content-center"></td>
      <td class="table-content-center"></td>
    </tr>
  </ng-template>
</p-table>
